package com.sjlh.centurylianhua.dto;

/**
 * @author QINKUI
 * 模块业务类
 */
public class ModuleDto {
	
	private int id;//节点唯一标识
	private int parentId;//父节点
	private String label;//节点标题
	private String icon;//小图标
	private Integer isParentNode;//是否父节点
	private Integer isChildNode;//是否叶子节点
	private String href;//点击节点弹出新窗口对应的 url
	private boolean checked;//节点是否初始为选中状态（如果开启复选框的话），默认 false

	public ModuleDto() {
	}
	@Override
	public String toString() {
		return "ModuleDto{" +
				"id=" + id +
				", parentId=" + parentId +
				", label='" + label + '\'' +
				", icon='" + icon + '\'' +
				", isParentNode=" + isParentNode +
				", isChildNode=" + isChildNode +
				", href='" + href + '\'' +
				", checked=" + checked +
				'}';
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public void setIsParentNode(Integer isParentNode) {
		this.isParentNode = isParentNode;
	}

	public void setIsChildNode(Integer isChildNode) {
		this.isChildNode = isChildNode;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public int getId() {
		return id;
	}

	public int getParentId() {
		return parentId;
	}

	public String getLabel() {
		return label;
	}

	public String getIcon() {
		return icon;
	}

	public Integer getIsParentNode() {
		return isParentNode;
	}

	public Integer getIsChildNode() {
		return isChildNode;
	}

	public String getHref() {
		return href;
	}

	public boolean isChecked() {
		return checked;
	}

	public ModuleDto(int id, int parentId, String label, String icon, Integer isParentNode, Integer isChildNode, String href, boolean checked) {
		this.id = id;
		this.parentId = parentId;
		this.label = label;
		this.icon = icon;
		this.isParentNode = isParentNode;
		this.isChildNode = isChildNode;
		this.href = href;
		this.checked = checked;
	}
}
